package com.changgou.goods.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * Pref信息
 *
 * @author gaofeng
 * @date 2025/4/20 21:55
 */
@Data
@ApiModel(description = "Pref", value = "Pref")
@Table(name = "tb_pref")
public class Pref implements Serializable {
    /**
     * ID
     */
    @ApiModelProperty(value = "ID", required = false)
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Integer id;

    /**
     * 分类ID
     */
    @ApiModelProperty(value = "分类ID", required = false)
    @Column(name = "cate_id")
    private Integer cateId;

    /**
     * 消费金额
     */
    @ApiModelProperty(value = "消费金额", required = false)
    @Column(name = "buy_money")
    private Integer buyMoney;

    /**
     * 优惠金额
     */
    @ApiModelProperty(value = "优惠金额", required = false)
    @Column(name = "pre_money")
    private Integer preMoney;

    /**
     * 活动开始日期
     */
    @ApiModelProperty(value = "活动开始日期", required = false)
    @Column(name = "start_time")
    private Date startTime;

    /**
     * 活动截至日期
     */
    @ApiModelProperty(value = "活动截至日期", required = false)
    @Column(name = "end_time")
    private Date endTime;

    /**
     * 类型,1:普通订单，2：限时活动
     */
    @ApiModelProperty(value = "类型,1:普通订单，2：限时活动", required = false)
    @Column(name = "type")
    private String type;

    /**
     * 状态,1:有效，0：无效
     */
    @ApiModelProperty(value = "状态,1:有效，0：无效", required = false)
    @Column(name = "state")
    private String state;
}
